package com.example.database.demo.service;

import com.example.database.demo.pojo.JewelryPojo.requestData.Cancellnsure.CancellnsureParam;
import com.example.database.demo.pojo.JewelryPojo.requestData.Insure.InsureParam;
import com.example.database.demo.pojo.JewelryPojo.responseData.ResponseData;
import com.fasterxml.jackson.core.JsonProcessingException;

import java.io.IOException;
import java.security.NoSuchAlgorithmException;
import java.security.spec.InvalidKeySpecException;
import java.util.List;

/**
 * @author xionglin
 */
public interface JewelryCargoInsuranceService {
    public List<ResponseData> doInsure(List<InsureParam> insureParamList) throws IOException, NoSuchAlgorithmException, InvalidKeySpecException;

    public ResponseData doCancelInsure(CancellnsureParam cancellnsureParam) throws JsonProcessingException, NoSuchAlgorithmException, InvalidKeySpecException;
}
